﻿<head>
	<meta charset="utf-8">
	<script src="../js/jquery-3.2.1.min.js"></script>
		<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
	<link rel="stylesheet" href="../css/bootstrap.min.css" >	
	<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
	<script src="../js/bootstrap.min.js" ></script>
	<link rel="stylesheet" type="text/css" href="../css/index.css">
	<title>修改问题</title>
</head>

<!-- 网站的头部公用部分 -->
	<div style="height: 60px;">
	<nav class="navbar navbar-default navbar-fixed-top top" >
		<a href="../"><img class="top_left" src="../images/log.png"></a>
		<div class="pull-right" style="margin-top: 15px;margin-right: 20px;">
			<a href="http://www.xinli001.com/ceshi">关于心理测试</a>
		</div>
		</nav>
	</div>

<?php


mysql_connect("localhost","root","root");//
mysql_query("set names utf8");

$query="select * from question WHERE questionID = '$questionID' ";
$result = mysql_db_query("psychology","$query");
$data = mysql_fetch_object($result);
?>
<div class="container" style="padding-top: 60px;margin-top: 85px; width: 500px;background-color: #f8f8f8">
<form role="form" action="questionEdit3.php?questionID=<?php echo $questionID; ?>" method="post">
	questionPart:<input class="form-control" type="text" name="questionPart"  value="<?php echo $data->questionPart;?>" />
	answerA:<input class="form-control" type="text" name="answerA" value="<?php echo $data->answerA ;?>" />
	answerB:<input class="form-control" type="text" name="answerB" value="<?php echo $data->answerB ;?>" />
	answerC:<input class="form-control" type="text" name="answerC" value="<?php echo $data->answerC ;?>" />
	answerD:<input  class="form-control" type="text" name="answerD" value="<?php echo $data->answerD ;?>" />	
		<input type="submit" name=" " value="确认修改">
		<a href='edit.php'>放弃修改</a>
</form>
</div>

<!-- 版权 -->
	<nav>
		<div  style="text-align:center" class="navbar navbar-default navbar-fixed-bottom" role="navigation">
			<hr>
			<font>©2018 chenshuwei AND yangliu.<br/>All Rights Reserved.<br/>
			电话：0991-123456</font>
		</div>
	</nav>